import axios from './middleware'

export default {  
	fetchCustomerList (params) {
    let uri = '/customer/list';  
    let config = {
      params
    }
		return axios.get(uri, config);
	},
	createCustomer (params) {
    let uri = '/customer/add';   
		return axios.post(uri, params);
	},
	modifyCustomer (params) {
    let uri = '/customer/edit';   
		return axios.post(uri, params);
	},
	deleteCustomer (params) {
    let uri = `/customer/del?customer_id=${params.customer_id}`;   
		return axios.get(uri);
	},  
} 
